﻿using QLCHBANGIAY.DATA;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QLCHBANGIAY.BUSINESS
{
    class BrandsServices
    {
        private static BrandsController db = new BrandsController();
        #region[Brand_GetById]
        public static List<Brand> Brand_GetById(string Id)
        {
            return db.Brand_GetById(Id);
        }
        #endregion
        #region[Brand_GetByTop]
        public static List<Brand> Brand_GetByTop(string Top, string Where, string Order)
        {
            return db.Brand_GetByTop(Top, Where, Order);
        }
        #endregion
        #region[Brand_GetByAll]
        public static List<Brand> Brand_GetByAll(string Lang)
        {
            return db.Brand_GetByAll(Lang);
        }
        #endregion
        #region[Brand_Paging]
        public static List<Brand> Brand_Paging(string CurentPage, string PageSize, string Lang)
        {
            return db.Brand_Paging(CurentPage, PageSize, Lang);
        }
        #endregion
        #region[Brand_Insert]
        public static bool Brand_Insert(Brand data)
        {
            return db.Brand_Insert(data);
        }
        #endregion
        #region[Brand_Update]
        public static bool Brand_Update(Brand data)
        {
            return db.Brand_Update(data);
        }
        #endregion
        #region[Brand_Delete]
        public static bool Brand_Delete(string Id)
        {
            return db.Brand_Delete(Id);
        }
        #endregion
    }
}
